@echo off
ipconfig /all|find "IP Address">>a.txt

ipconfig /all|find "Physical Address">>a.txt